#include "ConfigHelper.h"
#include "opencv2/myopencv.hpp"

ConfigHelper::ConfigHelper(void)
{
}

ConfigHelper::~ConfigHelper(void)
{
}

void ConfigHelper::save( std::string filename )
{
	cv::FileStorage fs(filename, cv::FileStorage::WRITE);

	fs << "useVideo" << false;
	fs << "videoFile" << "normal.wmv";
	fs << "needTrain" << false;

	fs << "loadVOSM" << true;
	fs << "VOSM" << "{";{
		fs << "opencvRoot" << "D:/program files/opencv231/";
		fs << "imageDir" << "BIOID/training";
		fs << "annotationDir" << "BIOID/landmark";
		fs << "shapeFile" << "BIOID/shapeinfo.txt";
		fs << "modelDir" << "BIOID/result";
		fs << "dataFormat" << "BIOID";
	}fs << "}";
}
